<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>查询内容 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
			<!-- <a href="" class="fullscreen" data-original-title="" title=""> </a> -->
    	</div>
    	<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body form">
	   	<form action="companyCheck/list" class="form-horizontal" method="get" id="searchForm">
			<div class="form-body">
				<div class="form-group">
					<div class="col-md-3">
						<label class="col-md-4 control-label">企业：</label>
						<div class="col-md-8">
							<input type="hidden" value="$!type" name="type">
					    	<input type="text" class="form-control" name="name"  placeholder="输入企业名称" value="$!name">
						</div>
					</div>
					
					<div class="col-md-3">
						<label class="col-md-4 control-label">员工：</label>
						<div class="col-md-8">
					    	<input type="number" class="form-control" name="userId" placeholder="输入会员号/手机号码" value="$!userId">
						</div>
					</div>
					<div class="col-md-3">
						<label class="control-label col-md-4">创建时间</label> 
						<label class="col-md-8">
							<input class="form-control" type="text" name="startTime" id="startTime" value="$!startTime" readonly>
							<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
						</label>
					</div>
					<div class="col-md-3">
						<label class="control-label col-md-4">至：</label> 
						<label class="col-md-8">
							<input class="form-control" type="text" name="endTime" id="endTime" value="$!endTime" readonly>
							<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
						</label>
					</div>
					<div class="col-md-3">
						<label class="col-md-4 control-label">企业分类：</label>
							<select name="cataId" class="bs-select">
									<option value="0">-- 请选择 --</option>
	                				#foreach($cata  in $!cataList)
	                				<option #if($!cataId == $cata.id) selected="selected" #end value="$cata.id">$!cata.name</option>
	                				#end
	                		</select>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
		</div>
    </div>
    <div class="portlet-body">
    	<div class="form-group">
			<div class="alert alert-warning">
				<strong> 注：</strong>
				1.点击拒绝需要填写原因。
			</div>
		</div>
		<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li #if(!$!type) class="active" #end><a href="companyCheck/list" class="ajaxify">全部</a></li>
				<li #if($!type == "INIT") class="active" #end ><a href="companyCheck/list?type=INIT" class="ajaxify">审核中</a></li>
				<li #if($!type == "PASS") class="active" #end ><a href="companyCheck/list?type=PASS" class="ajaxify">审核通过</a></li>
				<li #if($!type == "UNPASS") class="active" #end ><a href="companyCheck/list?type=UNPASS" class="ajaxify">审核拒绝</a></li>
			</ul>
			<div class="tab-content">
				<div class="tab-pane active form">
					<div class="dataTables_wrapper no-footer">
						<div >
						    <table class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th>企业名称</th>
										<th>企业分类</th>
										<th>审核状态</th>
										<th>合约审核状态</th>
										<th>会员号</th>
										<th>申请人</th>
										<th>手机号</th>
										<th>审核提示</th>
										<th>申请时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									#foreach($company in  $!pageCompany.result)
									#set($userInfo = $!userInfoMap.get($!company))
									#set($cataId = $!cataMap.get($!company))
										<tr>
											<td>$!company.name</td>											
											<td>$!cataId</td>											
											<td>$!company.companySate.name</td>
											<td>$!company.concatState.name</td>
											<td>$!company.userId</td>
											<td>$!userInfo.realname</td>
											<td>$!company.phone</td>
											<td>
											#if($!company.companySate == "INIT" )
											<p class="text-warning">等待审核</p>
											#end
											#if($!company.companySate == "PASS" )
											
											#if($!company.concatState == "PASS")
											<p class="text-success">审核通过</p>											
											#elseif($!company.concatState == "INIT")
											<p class="text-warning">等待审核</p>
											#elseif($!company.concatState == "UNPASS")
											<p class="font-red-soft">$!company.checkWarn</p>
											#else
											 	<p class="text-success">审核通过</p>											
											#end
											
																					
											#end
											#if($!company.companySate == "UNPASS" )
											<p class="font-red-soft">$!company.checkWarn</p>											
											#end
											</td>
											<td>$!company.regtime</td>
											 <td><!--
											#if($!company.companySate == "INIT")
											<a href="javascript:vodi(0);" t_msg="确认通过吗？" t_href="/companyCheck/list?type=$!type" class="btn green btn-outline btn-sm  ajax-update" thref="/companyCheck/pass?id=$!company.id">通过</a>
											<a href="#modelContent" data-toggle="modal" class="btn green btn-outline btn-sm ajax-model-get " thref="/companyCheck/denial?id=$!company.id&type=$!type">拒绝</a>
											#end-->
											<a href="#modelContent" data-toggle="modal" class="btn green btn-outline btn-sm ajax-model-get " thref="/companyCheck/info?id=$!company.id">详情</a>
											</td> 
										</tr>
									#end
								</tbody>
							</table>
						</div>
						#set($page= $!pageCompany)
						#set($pageUrl="/companyCheck/list?$!queryString&pageNo=")
						#parse("_page.htm")
					</div> 
				</div>
			</div>
		</div>
    </div>
</div>
 
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>
